import request from '@/utils/request'

// 查询订奶记录列表
export function listMilkRecord (query) {
  return request({
    url: '/milk/milkRecord/list',
    method: 'get',
    params: query
  })
}

// 查询订奶记录详细
export function getMilkRecord (id) {
  return request({
    url: '/milk/milkRecord/' + id,
    method: 'get'
  })
}

// 新增订奶记录
export function addMilkRecord (data) {
  return request({
    url: '/milk/milkRecord',
    method: 'post',
    data: data
  })
}


// 新增订奶记录
export function saveRecord (data) {
  return request({
    url: '/milk/milkRecord/saveRecord',
    method: 'post',
    data: data
  })
}

// 修改订奶记录
export function updateMilkRecord (data) {
  return request({
    url: '/milk/milkRecord',
    method: 'put',
    data: data
  })
}

// 删除订奶记录
export function delMilkRecord (id) {
  return request({
    url: '/milk/milkRecord/' + id,
    method: 'delete'
  })
}
